package com.cn.codebrush.时间;

import java.time.LocalDateTime;

/**
 * @Author Boolean
 * @Date 2022/11/8 11:11
 * @Version 1.0
 */
public class TestTime {
    public static void main(String[] args) throws InterruptedException {
        long millis1 = System.currentTimeMillis();
        Thread.sleep(3000);
        long millis2 = System.currentTimeMillis();
        long time=millis2-millis1;

        System.out.println(time);



    }
}
